package com.icloud.cer.rest.msg.bean;

import java.io.IOException;

import com.icloud.cer.rest.msg.AbsMsgObject;
import com.icloud.cer.rest.msg.BDataFilterInputStream;
import com.icloud.cer.rest.msg.DataFilterOutputStream;

public class ClientEncyptRequest extends AbsMsgObject<ClientEncyptRequest> {
	public static final int BYTE_COUNT = 4;
	private int taskCount;
	
	public int getTaskCount() {
		return taskCount;
	}

	public void setTaskCount(int taskCount) {
		this.taskCount = taskCount;
	}

	@Override
	protected void doSerialize(DataFilterOutputStream dos) throws IOException {
		dos.writeInt(taskCount);
	}

	@Override
	protected ClientEncyptRequest doDeserialize(BDataFilterInputStream dis) throws IOException {
		taskCount = dis.readInt();
		return this;
	}

}
